namespace Web.Control.Member.Message
{
    using System;
    using System.Web;
    using System.Web.UI.WebControls;
    using Lx.Web.Common.ControlsUI;

    public class NewMessage : BaseControl
    {
        public string MemberNo;
        protected string ToMemberNo = "";
        protected string Subject = "";

        protected override void OnLoad(EventArgs e) {
            if (HttpContext.Current.User.Identity.Name == "") {
                Page.Response.Redirect("/user/login.htm?ReturnUrl=" + Page.Request.Url.AbsoluteUri);
                Page.Response.End();
            }
            MemberNo = HttpContext.Current.User.Identity.Name;
            if(!string.IsNullOrEmpty(Request.QueryString["MemberNo"]))
            {
                ToMemberNo = Request.QueryString["MemberNo"].Trim().Length > 10 ? "" : Request.QueryString["MemberNo"].Trim() + ",";
            }
            if (!string.IsNullOrEmpty(Request.QueryString["Subject"]))
            {
                Subject = Request.QueryString["Subject"]; 
            }
            base.OnLoad(e);
        }
    }
}